const _ = require("lodash");
function getSum(a, b, c) {
    return a + b + c;
}

const curried = _.curry(getSum);
// 以下三次结果一样,如果只传递部分参数会返回新的函数等待接收剩余参数
console.log(curried(1, 2, 3));
console.log(curried(1)(2, 3));
console.log(curried(1, 2)(3));
